<div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <form>
        <div class="layui-form-item ">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="account" value="{{ d.params.account || '' }}" lay-verify="required"
                           autocomplete="off" class="layui-input" readonly>
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="text" name="mobile" value="{{ d.params.mobile || '' }}" lay-verify="phone"
                           placeholder="请输入手机号" autocomplete="off" class="layui-input">
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <select name="roleId" id="role">
                        <option value=''>请选择</option>
                    </select>
                </script>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <script type="text/html" template>
                    <input type="checkbox" lay-filter="switch" name="check"
                           {{ (d.params.check==1) ? 'checked' : '' }}
                    lay-skin="switch" lay-text="启用|禁用">
                </script>
            </div>
        </div>
    </form>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认"
                   class="layui-btn layui-btn-fluid">
        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'form'], function () {
        var $ = layui.$
            , admin = layui.admin
            , form = layui.form

    });
</script>